#!/usr/bin/python
# pylint: disable-msg = W0102
'''
Created by Colin Gillespie <c.gillespie@ncl.ac.uk>
$LastChangedDate: 2009-05-06 14:29:18 +0000 (Wed, 06 May 2009) $

 * closure_order = the largest moment that will be returned
 * method = closure method, Normal or Lognormal
 * output_format = Maple
 * time_closure_order = closure of time derivatives
'''

__revision__ = '$Rev: 124 $'


def globalVariables(closure_order=None, method=None, \
    output_format=None, time_closure_order=None, var = {}):
    
    if closure_order:
        var['closure_order'] = int(closure_order)
    elif not var.has_key('closure_order'):
        var['closure_order'] = 8#2
    
    if method:
        var['method'] = method    
    elif not var.has_key('method'):
        var['method'] = 'Normal'
    
    if output_format:
        var['output_format'] = output_format 
    elif not var.has_key('output_format'):
        var['output_format'] = 'Maple'
    
    if time_closure_order:
        var['time_closure_order'] = time_closure_order
    elif not var.has_key('time_closure_order'):
        var['time_closure_order'] = 8#2
    
    return var

